2005-06-15 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
+ red and blue in place.
+
* gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
formatting, pointed out by Kjartan Maraas.
2005-06-15 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
+ red and blue in place.
+
* gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
formatting, pointed out by Kjartan Maraas.
2005-06-15 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
+ red and blue in place.
+
* gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
formatting, pointed out by Kjartan Maraas.
XcursorImage *image;
gint size;
gchar buf[32];
- guchar *data;
+ guchar *data, *p, tmp;
GdkPixbuf *pixbuf;
gchar *theme;
data = g_malloc (4 * image->width * image->height);
memcpy (data, image->pixels, 4 * image->width * image->height);
+ for (p = data; p < data + (4 * image->width * image->height); p += 4)
+ {
+ tmp = p[0];
+ p[0] = p[2];
+ p[2] = tmp;
+ }
+
pixbuf = gdk_pixbuf_new_from_data (data, GDK_COLORSPACE_RGB, TRUE,
8, image->width, image->height,
4 * image->width,